/*******************************************************************************
*   Copyright (C) Harbin Institute of Technology, Shenzhen.
*				  All Rights Reserved.
*   Department: Decoration
********************************************************************************
* File Name   : gb_if.h
* Author      : Dayuan
* Version     : v0.01
* Date        : 2019/9/2
* Description : Decoration Rototics Manipulator task.
*******************************************************************************/
/*-History----------------------------------------------------------------------
* Version   Date      Name        Changes and comments
* v0.01     2019/9/2  Dayuan    initial version
*=============================================================================*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _GB_IF_H_
#define _GB_IF_H_

#ifdef __cplusplus
 extern "C" {
#endif
     
/**** Includes ****/
     
/**** Definition of constants ****/
 
/**** Definition of types ****/ 
typedef enum
{
	FSM_INITIAL = 0,
	FSM_CALIBRATION,
	FSM_READY,
	FSM_ERROR
}FSM_STATUS;

/**** Definition of macros ****/

#ifndef ROS_DEBUG
#define ROS_DEBUG
#endif

/**** Declaration of constants ****/


/**** Declaration of variables ****/


/**** Declaration of functions ****/
#ifdef ROS_DEBUG
extern void ros_gpio_start_command(void);
extern FSM_STATUS get_fsm_status(void);
extern void status_reset(void);
#endif
#ifdef __cplusplus
}
#endif

#endif
